package de.yvert.jingle.impl.openexr;

import java.io.IOException;
import java.util.Arrays;

public class GenericAttribute extends Attribute
{

String type;
byte[] value;

public GenericAttribute(String name)
{ super(name); }

@Override
public String toString()
{
	return "GENERIC "+type+" \""+getName()+"\" = "+Arrays.toString(value);
}

@Override
public void write(ExrOutputStream out) throws IOException
{
	out.writeString(getName());
	out.writeString(type);
	out.writeInt(value.length);
	out.write(value);
}

}
